package org.lt.resume.domain;
import java.sql.DriverManager;

import com.mysql.jdbc.Connection;
import org.springframework.web.servlet.view.XmlViewResolver;


public class Km {

	public static void main(String args[]){
	      String dbDriver = "com.mysql.jdbc.Driver"; // 数据库的驱动resumeSystem
	      String url="jdbc:mysql://localhost:3306/resumesystem?user=root&password=luohong"; // URL地址
	      Connection connection = null;
	           try {
	        Class.forName(dbDriver); // 加载数据库驱动
	        connection = (Connection) DriverManager.getConnection(url);// 加载数据库
	        System.out.println("数据库加载成功");
	       } catch (Exception ex) {
	        System.out.println("数据库加载失败");
	       }

	}
	
}
